import Cookies from 'js-cookie'

const TokenKey = 'token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

// 审核状态
export function getAuditStatus() {
  return Cookies.get('auditStatus')
}

export function setAuditStatus(auditStatus) {
  return Cookies.set('auditStatus', auditStatus)
}

export function removeAuditStatus() {
  return Cookies.remove('auditStatus')
}

// 微信code
export function getWxCode() {
  return Cookies.get('wxCode')
}

export function setWxCode(wxCode) {
  return Cookies.set('wxCode', wxCode)
}

export function removeWxCode() {
  return Cookies.remove('wxCode')
}
